package test;

public class test {
    public static void main(String[] args) {
        Person p=new Person("zhangsan",18);
        Animal animald=new Dog(2,"黑");
        Animal animalc=new cat(3,"橘");

        p.keeppet(animald,"骨头");
        System.out.println("-------------------------------------");
        p.keeppet(animalc,"小鱼干");

    }

}
